package com.xinqi.modules.exam.common.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.green.annotation.Text;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 课程中版块设置表(ClassMenu)表实体类
 *
 * @author liuxingxing
 * @since 2023-03-06 15:40:25
 */
@SuppressWarnings("serial")
@TableName(value = "cl_class_menu", schema = "course")
@Data
public class ClassMenuEntity extends BaseEntity {
    /**
     * 菜单初始id
     */
    @Schema(description = "菜单初始ID")
    private Long menuInitId;
    /**
     * 课程ID
     */
    @NotEmpty(message = "班级id非空")
    private Long courseId;
    /**
     * 班级ID
     */
    @Schema(description = "班级ID")
    private Long classId;
    /**
     * 版块名称
     */
    @Text
    @NotEmpty(message = "板块名称非空")
    private String title;

    /**
     * 原始名称
     */
    @NotEmpty(message = "原始名称")
    private String originalTitle;

    /**
     * 1课堂目录 2作业 3测评 4讨论 5资料库 6课堂互动
     */
    @NotEmpty(message = "类型非空")
    private Integer type;

    /**
     * 是否显示0否1是
     */
    @Schema(description = "是否显示0否1是")
    private Integer hiden;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
}
